<html>
<head>
<script LANGUAGE="JavaScript">
//document.getElementById("firstName").onkeyup = function(){if(this.value.length >= 1) isValidFirstName(this);}; 

function insertData(){
	$sqlProfile = "insert into profile(firstname,lastname,address,email,telephone,gender,birthday,card_id) 
			values('.$firstName.','.$lastName.','.$address.','.$email.','.$telephone.','.$gender.','.$birthDay.'
			,'.$idCard) ";
	$sqlUser = "insert into user(username,password) values ('.$userName.','.$password.')"
}

function checkPassword($password,$rePassword){
	if($password.length<6){
		window.alert("Password must be 6 or more characters");
		return false;
	}
	if ($password !== $rePassword){
		window.alert("Password don't match");
		return false;
	}
}

function checkform(){
	return checkForm(gmapForm.$password.value,gmapForm.$rePassword.value);
}


</script>


	<title>GMapApplication</title>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-874"/>
	<SCRIPT LANGUAGE="Javascript" SRC=""></SCRIPT>
	<style type="text/css">
	</style>
</head>

</html>


</script>

<head>
	<title>GMapApplication</title>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-874"/>
	<SCRIPT LANGUAGE="Javascript" SRC=""></SCRIPT>
	<style type="text/css">
	</style>

</head>


<body bgColor ="black">
	<h2><center><font color="orange">Registeration<hr color = "red" size ="4"></center></h2></br>

	<form method=get action="/cgi-bin/example.cgi"><font color = "white", size = "3">
		<table cellpadding="1" cellspacing="2" width="100%" width="100%">
		<tr>
			<td><font color = "red", size = "3">First Name ::   </font><input name="firstName" value="" size="50" maxlength="30"></td>
		<?php
		
		?>
			<td><font color = "red", size = "3">Last Name ::    </font><input name="lastName" value ="" size="50" maxlength="30"></td></br>
				</br>
		</tr></font>
		</table>
		
		<table cellpadding="1" cellspacing="2" width="100%" width="100%">
		<tr>
			<td><font color = "white", size = "3">Gender ::<input type="radio" name="gender"> Male
				<input type="radio" name="gender" checked> Female</dd></font></td></br>
		<td><font color = "white", size = "3">Birth Day :: 
	

	</table>
	</br>
	<font color="red">User Name </font>:: <input name="userName" value="" size= "30" maxlength="30"> 	(Require at least 6 characters)</br>
		</br>
		<font color="red">Password </font>::  <input type ="password"name= "password" value ="" size = "30" 	maxlength="30" > (Require at least 6 characters)</br>
	</br>
	<font color="red">Re-Password  </font>::  <input type="password" name = "rePassword" value="" 	size="30" maxlength="30"></br>
			</br>
	<font color="red">ID-Card Number  </font>::  <input name = "idCard" value="" size ="15" 	maxlength="15"></br>
	<table cellpadding="1" cellspacing="2" width="100%" width="100%">
			<tr>
		<td><font color = "red", size = "3">Telephone Number ::  <input name="telNum" value="" size="10" 	maxlength="10"></font></td>
		<td><font color = "white", size = "3">E-mail ::  <input name="email" value="" size="30" 	maxlength="30"></font></td></br>
	</table>
		Addresss :: </br><textArea wrap="virtual" name="address" rows=3 cols=70 	maxlength=255></textArea></br><br>
		<center><input type="Submit" value ="Confirm" onClick="checkPassword($password,$rePassword);"></center>
	</form>

	
</body>
	
</html>